<?php
// $Id: footer.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

if( !defined( 'XOOPS_CUBE_LEGACY' ) ) {

if (is_object($xoopsTpl) && ($mylinks_right_wide_theme === true)) {
$xoopsTpl->assign('xoops_showrblock', 0);
}
elseif (is_object($xoopsTpl)&& ($mylinks_left_wide_theme === true)) {
$xoopsTpl->assign('xoops_showlblock', 0);
}
elseif (is_object($xoopsTpl)&& ($mylinks_both_wide_theme === true)) {
$xoopsTpl->assign('xoops_showrblock', 0);
$xoopsTpl->assign('xoops_showlblock', 0);
}

}
else {

//in case of xoopscube
if (is_object($GLOBALS['xoopsTpl']) && ($mylinks_right_wide_theme === true)) {
$GLOBALS['show_rblock'] = 0;
}
elseif (is_object($GLOBALS['xoopsTpl'])&& ($mylinks_left_wide_theme === true)) {
$GLOBALS['show_lblock'] = 0;
}
elseif (is_object($GLOBALS['xoopsTpl'])&& ($mylinks_both_wide_theme === true)) {
$GLOBALS['show_rblock'] = 0;
$GLOBALS['show_lblock'] = 0;
}

}

//wanikoo
$xoopsTpl->assign('mylinksshowsiteinfo', $mylinks_show_siteinfo);
$xoopsTpl->assign('mylinksshowextrafunc', $mylinks_show_extrafunc);
$xoopsTpl->assign('mylinksshowextrafuncbig', $mylinks_show_extrafunc_big);
$xoopsTpl->assign('mylinksshowsearch', $mylinks_show_search);
$xoopsTpl->assign('mylinksshowlogo', $mylinks_show_logo);
$xoopsTpl->assign('mylinkslogoimage', $logoimage);

$xoopsTpl->assign('mylinksadcodes', $mylinks_adcodes);
//wanikoo
$can_print = 0;
$can_pdf = 0;
$can_qrcode = 0;
//print func
if ( $mylinks_can_print == 0 ) {
	$can_print = 0;
}
else if ( $mylinks_can_print == 1) {
	$can_print = 1;
}
else if ( $mylinks_can_print == 2) {
	if ( $xoopsUser ) {
	$can_print =1;
	}
	else {
	$can_print =0;
	}
}
else {
	$can_print = 0;
}

if ( empty($can_print) ) {
$xoopsTpl->assign('mylinksextrafuncprint', false);
}
else {
$xoopsTpl->assign('mylinksextrafuncprint', true);
}
//pdf func
if ( $mylinks_can_pdf == 0 ) {
	$can_pdf = 0;
}
else if ( $mylinks_can_pdf == 1) {
	$can_pdf = 1;
}
else if ( $mylinks_can_pdf == 2) {
	if ( $xoopsUser ) {
	$can_pdf =1;
	}
	else {
	$can_pdf =0;
	}
}
else {
	$can_pdf = 0;
}

if ( empty($can_pdf) ) {
$xoopsTpl->assign('mylinksextrafuncpdf', false);
}
else {
$xoopsTpl->assign('mylinksextrafuncpdf', true);
}
//qrcode func
if ( $mylinks_can_qrcode == 0 ) {
	$can_qrcode = 0;
}
else if ( $mylinks_can_qrcode == 1) {
	$can_qrcode = 1;
}
else if ( $mylinks_can_qrcode == 2) {
	if ( $xoopsUser ) {
	$can_qrcode =1;
	}
	else {
	$can_qrcode =0;
	}
}
else {
	$can_qrcode = 0;
}

if ( empty($can_qrcode) ) {
$xoopsTpl->assign('mylinksextrafuncqrcode', false);
}
else {
$xoopsTpl->assign('mylinksextrafuncqrcode', true);
}
//
$xoopsTpl->assign('lang_fullview', "detail");
$xoopsTpl->assign('lang_print', "print it");
$xoopsTpl->assign('lang_pdf', "make it pdf");
$xoopsTpl->assign('lang_qrcode', "make it qrcode");
//ver2.5
$xoopsTpl->assign('mylinks_weburl', XOOPSMYLINKURL);
if (file_exists(XOOPSMYLINKIMGPATH."/".$mylinks_theme)) {
$xoopsTpl->assign('mylinks_imgurl', XOOPSMYLINKIMGURL."/".$mylinks_theme);
}
else {
$xoopsTpl->assign('mylinks_imgurl', XOOPSMYLINKIMGURL);
}

include_once XOOPS_ROOT_PATH.'/footer.php';

?>